<template>
    <div id="app">
        <el-button @click="$refs.editor.visible=true">打开编辑器1</el-button>
        <Editor ref="editor"/>
        <el-button @click="$jsonSchemaEditor.open">打开编辑器</el-button>
        <el-button @click="$jsonSchemaEditor.close({clear: true})">清除编辑器</el-button>
    </div>
</template>

<script>
import Editor from "@/view/Editor.vue";

export default {
    name: 'App',
    components: {
        Editor,
    }
}
</script>

<style>
</style>
